{extend  name="manage@public/layout" /}
{block name="content"}
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>编辑渠道 <small></small></h5>
                        <div class="ibox-tools">
                            <a href="{:url('/manage/channel')}" class="close-link">
                                <i class="fa fa-reply-all">&nbsp;返回</i>
                            </a>
                        </div>
                    </div>  
                    <div class="ibox-content">
                        <form action="{:url('/manage/editChannel')}" method="post" class="form-horizontal">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">ID</label>
                                <div class="col-sm-3">
                                    <input type="text" disabled value="{$info.id}" class="form-control">
                                    <input type="hidden" name="id" value="{$info.id}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">渠道名称</label>
                                <div class="col-sm-3">
                                    <input type="text" name="name" value="{$info.title}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">渠道类名</label>
                                <div class="col-sm-3">
                                    <input type="text" onkeyup="value=value.replace(/[^a-zA-Z]/g,'')" onblur="jsUcfirst()" name="channel_class" value="{$info.code}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">状态</label>
                                <div class="col-sm-3">
                                    <div class="radio i-checks">
                                        <label><input type="radio" name="status" {eq name="info['status']" value="1"}checked{/eq} value="1"> <i></i> 开启</label>
                                        <label><input type="radio" name="status" {eq name="info['status']" value="2"}checked{/eq} value="2"> <i></i> 关闭</label>
                                    </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">回调IP</label>
                                <div class="col-sm-3">
                                    <textarea id="white_ip" class="input-sm form-control" rows="4" cols="30" style="border: 1px solid #e5e6e7;" placeholder="多个ip用|隔开" name="white_ip">{$info.white_ip}</textarea>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">创建时间</label>
                                <div class="col-sm-3">
                                    <input type="text" disabled value="{$info.create_time}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>    
            </div>
        </div>
    </div>
    {/block}
    {block name="script"}
<script src="/static/js/admin/channel.js"></script>

{/block}